package org.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.server.UserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 季舟
 * @Date 2024-09-03 16:38
 */
@Api(tags="用户管理")
@RestController
@RequestMapping("/users")
public class UserController {

    @Autowired
    private UserServer userServer;

    @ApiOperation("创建用户")
    @PostMapping("/add")
    public String add() {
        return userServer.add();
    }

}
